package worldinruin.core.imp.tilemodels;

import java.util.ArrayList;

import worldinruin.core.IBuilding;
import worldinruin.core.ITile;
import worldinruin.core.IType;
import worldinruin.core.imp.buildings.Stonemine;

public class StoneTile extends AbstractTile {
	
	private static final long serialVersionUID = -5301084171314119375L;
	private int row;
	private int column;
	private String name = "Stone tile";
	private IType tileType = TileTypes.STONETILE;
	private ArrayList<IBuilding> availableBuildings = new ArrayList<IBuilding>();
	private String tileDescription = "This tile is rich with rocks. " +
				"Here you can build a rock mine to collect stone for your resources.";
	private String tileHead = "Stone tile";
	
	public StoneTile(){}
	
	public StoneTile(int row, int column) {
		availableBuildings.add(new Stonemine());
		this.row = row;
		this.column = column;
	}
	
	@Override
	public ITile newInstance(int row, int column) {
		return new StoneTile(row, column);
	}
	
	@Override
	public int getColumn() {
		return column;
	}


	@Override
	public int getRow() {
		return row;
	}
	
	@Override
	public IType getTileType() {
		return tileType;
	}
	
	public String getDescription(){
		return tileDescription;		
	}

	public String getTileHead(){
		return tileHead;
	}

	public ArrayList<IBuilding> getAvailableBuildings() {
		return availableBuildings;
	}

	public String getName() {
		return name;
	}
}
